package com.guet.mapper;

import com.guet.VO.StatisticsCountVO;
import com.guet.VO.StatisticsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface StatisticsMapper {
    List<StatisticsVO> list(int paperId);

    Integer countPerson(Map<String, Object> queryParams);

    @Select("select score from score where user_id = #{userId} and paper_id = #{id}")
    String getScore(Long userId, Integer id);

    StatisticsCountVO getStatisticsCount();
}
